

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="layout" content="main" />
        <g:set var="entityName" value="${message(code: 'student.label', default: 'Student')}" />
        <title><g:message code="default.list.label" args="[entityName]" /></title>
    </head>
    <body>
        <div class="body">
            <h1><g:message code="student.noclasses.list.message"/></h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
        <div class="nav">
            <span class="menuButton"><a class="home" href="${createLink(uri: '/')}">Home</a></span> 
            <div>
             移动至<g:select name="classes"
          from="${Classes.findAllBySchool(session.school)}"
          value="${classes?.id}"
          optionKey="id" 
          noSelection="['':'-选择班级-']"/> 
          <g:hiddenField name="selectStudentList" value="" />
          <g:hiddenField name="oldClassesid" value="" />
          <button id="submitStudents">提交</button>
             </div>
        </div>
            <div class="list">
                
                <table>
                    <tr><td><g:checkBox name="selectAll" class="checkbox" alt="全选/不选本页学员"/>全选</td></tr>
                    <thead>
                        <tr>
                            <th>选择</th>
                        
                            <g:sortableColumn property="name" title="${message(code: 'student.name.label', default: 'Name')}" />

                        </tr>
                    </thead>
                    <tbody>
                    <g:each in="${newsStudentList}" status="i" var="studentInstance">
                        <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
                        
                            <td><g:checkBox class="selectStudents checkbox" name="selectStudent" value="${studentInstance.id}"  checked="false"/></td>     
                            <td>${fieldValue(bean: studentInstance, field: "name")}</td>
                        </tr>
                    </g:each>
                    </tbody>
                </table>
            </div>
        </div>
		<div class="paginateButtons">
            </div>
        <g:javascript src="domain/classesMgr_student.js" type="text/javascript"/>
    </body>
</html>
